home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swagn_r.zip
/
NUMBERS.SWG
/
0007_BYT2REAL.PAS.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
530b
|
24 lines
Type
bsingle = Array [0..3] of Byte;
{ converts Microsoft 4 Bytes single to TP Real }
Function msb_to_Real (b : bsingle) : Real;
Var
pReal : Real;
r : Array [0..5] of Byte Absolute pReal;
begin
r [0] := b [3];
r [1] := 0;
r [2] := 0;
move (b [0], r [3], 3);
msb_to_Real := pReal;
end; { Function msb_to_Real }
{
Another Turbo Pascal routine to convert Microsoft single to TP LongInt
index := ((mssingle and not $ff000000) or $00800000) shr (24 -
((mssingle shr 24) and $7f)) - 1;
}